//
//  Define.h
//  Malena
//
//  Created by Dawn on 12-11-3.
//  Copyright (c) 2012年 Dawn. All rights reserved.
//

#ifndef Malena_Define_h
#define Malena_Define_h

#define SCREEN_4_INCH           (SCREEN_HEIGHT == 568)                          // 4寸Retina
#define SCREEN_WIDTH			([[UIScreen mainScreen] bounds].size.width)     // Screen width
#define SCREEN_HEIGHT			([[UIScreen mainScreen] bounds].size.height)    // Screen height
#define MAINCONTENTHEIGHT       (SCREEN_HEIGHT - 20 - 44)                       // Content height

// 判断系统版本是否大于x.x
#define IOSVersion_3_2			([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2)
#define IOSVersion_4			([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0)
#define IOSVersion_5			([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0)
#define IOSVersion_6			([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)

//常用函数
#define RESOURCEFILE(x,y)       [[NSBundle mainBundle] pathForResource:x ofType:y]

// 颜色
#define MAINBGCOLOR             [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.6f]
#define MAINTEXTCOLOR           [UIColor lightGrayColor]

// 关于信息
#define INFO_URL                @"http://yishuyun.cn"

// 分享图片名
#define SHAREIMAGE_NAME         @"yishuyun.jpg"

// 通知
#define APPLICATIONWILLTERMINATE @"APPLICATIONWILLTERMINATE"

// 友盟
#define UMENG_APPKEY @"50a4b2c752701511d30002e3"
#define UMENG_CHANNEL @"App Store"
#endif
